<!--{template 'header','buyhelp'}-->

<!--主体部分 start-->
<div class="layout960 mt10 fn-clear">
<div class="auto-filter-left fn-left">
	{template 'part_BrandList','auto'}
</div>
<div class="auto-filter-right fn-right">
{if is_string($filter[typeid]) || $areaid}
<div class="f14 fn-clear">
	<b class="fn-left c666 fn-left">您已选择：</b>
	<div class="cat-selected fn-left ">
		<ul class="fn-clear">
			{if is_string($filter[typeid])}
			<li><a href="{reUrl($filter, 'typeid')}"><h5>二手类型：</h5>{$TYPE_NAME[$typeid]}<i class="icon-close"></i></a></li>
			{/if}
			{if $areaid}
			<!--{php $areaParentids = Area::directRelative($areaid, true)}-->
			<!--{loop $areaParentids $_aid}-->
			<!--{if $AREA[$_aid]['areaname']}-->
			<li><a href="{reUrl($filter, array('areaid'), array($AREA[$_aid][parentid]))}"><h5>选择地区：</h5>{$AREA[$_aid]['areaname']}<i class="icon-close"></i></a></li>
			<!--{/if}-->
			<!--{/loop}-->
			{/if}
		</ul>
	</div>
</div>
{/if}
<div class="cat-property mt5">
<div class="cat-section fn-clear">
	<div class="cat-hd fn-left">二手性质:</div>
	<ul class="fn-left">
		<li id="typeid_{$filter['typeid']}"{if $filter['typeid']==null} class='selected'{/if}><a  href="{reUrl($filter,'typeid')}" title="不限">不限</a></li>
		{loop $TYPES $k $v}
		<li id="typeid_{$k}" {if !is_null($filter['typeid']) && $k==$filter['typeid']} class='selected'{/if}><a  href="{reUrl($filter,'typeid',$k)}" title="{$v}">{$v}</a></li>
		{/loop}
	</ul>
</div>
<div class="cat-section fn-clear">
	<div class="cat-hd fn-left">地区筛选:</div>
	<!--{loop $mainarea $k1 $mainL}-->
	<ul class="fn-left">
		<li {if !$areaid}class='selected'{/if}>
		<a  href="{reUrl($filter, 'areaid', $AREA[$areaid]['parentid'])}" title="不限">不限</a>
		</li>
		<!--{loop $mainL $k2 $v}-->
		<li {if $v[areaid]==$areaid} class='selected'{/if}>
		<a  href="{reUrl($filter, 'areaid', $v['areaid'])}" title="{$v[areaname]}">{$v[areaname]}</a>
		</li>
		<!--{/loop}-->
	</ul>
	<!--{/loop}-->
</div>
</div>
<div class="mt10 fn-clear">
	<div class="filter-list panel-rec-radius fn-left">
		<div class="hd-rec-radius fn-clear">
			<h3 class="fn-left">综合信息</h3>
		</div>
		<ul class="ul-blue withtime bd-bot-dot">
			<!--{if $tags}-->
			<!--{loop $tags $i $t}-->
			<li>
				<a href="{url('buy/show', 'itemid='.$t['itemid'])}" title="{$t[title]}" target="_blank">{$t[title]}</a>
				<span>{$t[editdate]}</span>
			</li>
			{if ($i+1)%10 == 0 && ($i+1) != count($tags)}<li class="bd-bot-dot" style="height: 10px;margin-bottom: 5px" ></li>{/if}

			<!--{/loop}-->
			<!--{else}-->
			<li>抱歉，暂无相关信息</li>
			<!--{/if}-->
		</ul>
		<div class="pages fn-clear">
			{php $total = $items}
			{php $pn = $do->getPn()}
			{template 'pager', 'inc'}
		</div>
	</div>
	<div class="layout-2of2 fn-right">
		<iframe src="{SITE_URL}extend/fragment.php?modules=carhits&psize=10"  scrolling="no" frameborder="0" height="380"></iframe>
		<iframe src="{SITE_URL}extend/fragment.php?modules=sale&psize=10"  scrolling="no" frameborder="0" height="300"></iframe>
		<iframe src="{SITE_URL}extend/fragment.php?modules=new&psize=10"  scrolling="no" frameborder="0" height="300"></iframe>
	</div>

</div>
	{template 'footer','auto'}
</div>
</div>
<script>
	seajs.use(['$'],function($){
		$("#J_parentCat>li").each(function(){
			var catId = $(this).attr("data-id");
			if($("#J_"+catId).length<=0) return;
			$(this).hover(function(){
				$($("#J_"+catId)).siblings("ul:not('#J_parentCat')").hide();
				$("#J_"+catId).show();
				$(this).addClass("selected").siblings("li").removeClass("selected");
			});
		});
		$("#car-brand-alif").children("li").click(function(){
			var index = $(this).index();
			$("#car-brand-alif").addClass("dotted");
			var brand = $(this).attr("data-brand");
			$(this).addClass("selected").siblings().removeClass("selected");
			$("#brand_"+brand).show().siblings().hide();
		});
	});
</script>
<!--主体部分 end-->

</body>
</html>